package com.hello.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hello.sky.model.dto.CategoryDTO;
import com.hello.sky.model.entity.Category;
import com.hello.sky.model.dto.PageParamDto;
import com.hello.sky.model.vo.DishVO;
import com.hello.sky.result.PageResult;

import java.util.List;

/**
 * <p>
 * 菜品及套餐分类 服务类
 * </p>
 *
 * @author D
 * @since 2024-05-06
 */
public interface CategoryService extends IService<Category> {

    PageResult getPage(PageParamDto pageParamDto);

    List<Category> getListByType(Integer type);

    void addCategory(CategoryDTO dto);

    void updateStatus(Integer status, Integer id);

    void delCategoryById(Integer id);

    void updateCategory(Category category);

    List<DishVO> getDishById(Long categoryId);
}
